package com.midou.administration.mapper;

import com.midou.administration.entity.Business;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
public interface BusinessMapper extends BaseMapper<Business> {

    /**
     * 查询所有商家  （中包含该商家的热点 菜）
     */
    List<Business> hotMenuByBusiness();

    List<Business> businessQueryAll(@Param("bu_id") Integer bu_id,@Param("clerkId")Integer clerkId);

    Business zengjiaTime(@Param("bu_id") Integer buid);

    int updateProfit(@Param("businessId") Integer id, @Param("double") Double d);

    String doTokenFindShopName(@Param("id") Integer id );
}
